<template>
    <div class="box">
        <el-row class="flex">
            <div class="left">
            <div class="l-btom">
                <el-select v-model="value" placeholder="请选择">
                    <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
                    </el-option>
                </el-select>
            </div>

        </div>
        <div class="right">
            <el-tabs v-model="activeName" @tab-click="handleClick">
            <el-tab-pane label="总览" name="first">
                <el-row>
                    <el-col :span="24">
                        <div class="header">
                            <el-form ref="form" :model="form" label-width="100px" class="flex-start ">
                                <el-form-item label="网点名称">
                                    <el-input v-model="form.name" placeholder="请输入单号" style="width:286px"></el-input>
                                </el-form-item>
                                <el-form-item label="集包网点">
                                    <el-select v-model="form.region" placeholder="请选择集包网点" style="width:286px">
                                        <el-option label="区域一" value="shanghai"></el-option>
                                        <el-option label="区域二" value="beijing"></el-option>
                                    </el-select>
                                </el-form-item>
                                <div style="margin-left: 10px; ">
                                    <el-form-item label="时间范围" >
                                    <el-date-picker v-model="value1" style="width:100%" type="datetimerange" range-separator="至"
                                        start-placeholder="开始日期" end-placeholder="结束日期">
                                    </el-date-picker>
                                </el-form-item>
                                </div>
                                <el-form-item>
                                    <el-button type="primary" @click="onSubmit">查询</el-button>
                                    <el-button>重置</el-button>
                                </el-form-item>
                            </el-form>
                        </div>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="24">
                        <div>
                            <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"
                                @selection-change="handleSelectionChange">
                                <el-table-column type="selection" width="55">
                                </el-table-column>
                                <el-table-column label="序号" width="120">
                                    <template slot-scope="scope">{{ scope.row.date }}</template>
                                </el-table-column>
                                <el-table-column prop="name" label="所属网点" width="120">
                                </el-table-column>
                                <el-table-column prop="address" label="配置名称" show-overflow-tooltip>
                                </el-table-column>
                                <el-table-column prop="name" label="导出类型" width="120">
                                </el-table-column>
                                <el-table-column prop="name" label="导出对象名称" width="120">
                                </el-table-column>
                                <el-table-column prop="name" label="自动导出日期" width="120">
                                </el-table-column>
                                <el-table-column prop="name" label="创建日期" width="120">
                                </el-table-column>
                                <el-table-column prop="name" label="操作" width="120">
                                </el-table-column>
                            </el-table>
                        </div>
                    </el-col>

                </el-row>
                <div class="block" style="display: flex; justify-content: end;">
                    <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
                        :current-page="currentPage4" :page-sizes="[100, 200, 300, 400]" :page-size="100"
                        layout="total, sizes, prev, pager, next, jumper" :total="400">
                    </el-pagination>
                </div>
            </el-tab-pane>
        </el-tabs>

        </div>
        </el-row>
        


    </div>
</template>

<script>
export default {
    data() {
        return {
            activeName: 'first',

            options: [{
                value: '选项1',
                label: '黄金糕'
            }, {
                value: '选项2',
                label: '双皮奶'
            }, {
                value: '选项3',
                label: '蚵仔煎'
            }, {
                value: '选项4',
                label: '龙须面'
            }, {
                value: '选项5',
                label: '北京烤鸭'
            }],
            value: ''
            ,
            activeName: 'first',
            form: {
                name: '',
                region: '',
                date1: '',
                date2: '',
                delivery: false,
                type: [],
                resource: '',
                currentPage4: 4,
                desc: '',

            },
            tableData: [{
                date: '2016-05-03',
                name: '王小虎',
                address: '上海市普陀区金沙江路 1518 弄'
            }, {
                date: '2016-05-02',
                name: '王小虎',
                address: '上海市普陀区金沙江路 1518 弄'
            }, {
                date: '2016-05-04',
                name: '王小虎',
                address: '上海市普陀区金沙江路 1518 弄'
            }, {
                date: '2016-05-01',
                name: '王小虎',
                address: '上海市普陀区金沙江路 1518 弄'
            }, {
                date: '2016-05-08',
                name: '王小虎',
                address: '上海市普陀区金沙江路 1518 弄'
            }, {
                date: '2016-05-06',
                name: '王小虎',
                address: '上海市普陀区金沙江路 1518 弄'
            }, {
                date: '2016-05-07',
                name: '王小虎',
                address: '上海市普陀区金沙江路 1518 弄'
            }],
        };
    },
    methods: {
        handleClick(tab, event) {
            console.log(tab, event);
        }
    },

}
</script>

<style lang="scss" scoped>
.box {
    padding: 20px;
    min-height: calc(90vh - 70px);
    background-color: white;
    display: flex;
    justify-content: flex-start;
    flex-flow: column;
}
.ll{
    display: flex;
    flex-flow: column;
    height: 100px;
    justify-content: space-around;
}

.left {
    width: 320px;
    display: flex;
    background-color: white;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
    border: 1px solid #ccc;
    height: 800px;

    .l-top {
        width: 320px;
        border-bottom: 1px solid #ccc;
        height: 20%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .l-btom {
        margin-top: 20px;
    }
}


.right {
    padding: 20px;
    background-color: rgba(204, 204, 204, 0);
    display: flex;
    flex-flow: column;
    margin-left: 20px;
    width: 100vw;
    border: 1px solid #ccc;
    height: 800px;


    .r-top{
        background-color: white;
    }

}
.flex-bettom{
    display: flex;
    justify-content: space-between;
}
.r-btom{
    height: 100%;
    display: flex;
    flex-flow: column;
    margin-top: 20px;
    padding: 20px;
    background-color: white;
}
.font-20{
    font-size: 20px;
}
.font-16{
    font-size: 16px;
    color: #666666;
    padding: 20px 0;
}

.flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-start {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.header {
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.el-row {
    margin-bottom: 20px;

    &:last-child {
        margin-bottom: 0;
    }
}

.el-col {
    border-radius: 4px;
}

.bg-purple-dark {
    background: #99a9bf;
}

.bg-purple {
    background: #d3dce6;
}

.bg-purple-light {
    background: #e5e9f2;
}

.grid-content {
    border-radius: 4px;
    min-height: 36px;
}

.row-bg {
    padding: 10px 0;
    background-color: #f9fafc;
}</style>